package org.aeon.server.handler.Inbound;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;
import org.aeon.annotation.Incomplete;
import org.aeon.message.request.CancelLoginRequestMessage;

/**
 * @author: MissingAeon
 * @date: 2024/1/27 14:42
 * @description: 退出请求
 */
@Slf4j
@ChannelHandler.Sharable
@Incomplete
public class CancelLoginRequestHandler extends SimpleChannelInboundHandler<CancelLoginRequestMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, CancelLoginRequestMessage msg) throws Exception {
        ctx.channel().close();
    }
}
